* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font: 14px menu;
}

body {
  font-size: 1rem;
  background: white;
}

// Form elements will not inherit
body,
button,
select,
input,
textarea {
  font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
}

h1 {
  font-size: 1.5rem;
}
h1, h2 {
  margin-top: .5em;
  margin-bottom: .5em;
}
a {
  color: dodgerblue;
}
hr {
  margin: .5rem;
  border: none;
  border-top: 1px solid darkgray;
}
input[disabled] ~ * {
  color: gray;
}
input[type=text] {
  display: block;
  width: 100%;
}
textarea {
  display: block;
  width: 100%;
}
code {
  background: #F7E999;
}

:focus {
  outline: none;
}

.icon {
  width: 1rem;
  height: 1rem;
}

// Firefox does not support `svg path` selector
svg {
  fill: currentColor;
}

.btn-ghost,
.sep,
button {
  display: inline-block;
  padding: 0 .5rem;
  font-size: 1rem;
  line-height: 1.5;
  cursor: pointer;
  vertical-align: bottom;
}
.btn-ghost {
  color: inherit;
  border: 1px solid transparent;
  &:hover {
    border-color: #bbb;
    background: white;
  }
  > .icon {
    display: block;
    height: 2rem;
  }
}

.sep {
  &::after {
    content: '';
    border-right: 1px solid #bbb;
  }
}

.pull-right {
  float: right;
}
.inline-block {
  display: inline-block;
}
.flex {
  display: flex;
}
.flex-col {
  flex-direction: column;
}
.flex-auto {
  flex: auto;
  .flex-col > & {
    height: 0;
  }
  :not(.flex-col) > & {
    width: 0;
  }
}
.pos-rel {
  position: relative;
}
.ml-1 {
  margin-left: .5em;
}
.mr-1 {
  margin-right: .5em;
}
.ml-2 {
  margin-left: 1em;
}
.mt-1 {
  margin-top: .5em;
}
.mb-1 {
  margin-bottom: .5em;
}
.mb-2 {
  margin-bottom: 1em;
}
.mx-1 {
  margin-left: .5em;
  margin-right: .5em;
}
.h-100 {
  height: 100%;
}
.w-1 {
  width: 4em;
}
.fixed-full {
  position: fixed;
}
.abs-full {
  position: absolute;
}
.fixed-full,
.abs-full {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}
.ellipsis {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.frame {
  background: #f0f0f0;
  &-block {
    padding: .5rem;
  }
}

.editor-code .CodeMirror {
  height: 100%;
  /* Use `Courier New` to ensure `&nbsp;` has the same width as an original space. */
  font-family: Courier New, Courier, monospace;
}

.vl-dropdown-menu {
  padding: .5rem;
  border: 1px solid #bbb;
  background: white;
}

.modal-content {
  margin: 0 auto;
  padding: 1rem;
  background: white;
}
